<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>css</title>
   
</head>

<!-- 内嵌样式表  -->
<style>

div{
    background: linear-gradient(to right, blue, #feb47b); /* 从左到右的渐变 */
    border-radius: 20px; /* 圆角效果，可选 */

    border: 5px solid ;
    border-image: linear-gradient(to right, #42e695, #3bb2b8) 1; /* 渐变边框 */
}

</style>

<!-- 外部样式表 -->

<link rel="stylesheet" href="css/nice.css">
<body>
    
    

    <!-- 行内样式 优先级最高-->
    <div style="color: skyblue;  border: 10px; border-color: black;">111</div>

    <div >222</div>

    
</body>
</html>